package com.bwie.doctor.controller;

import com.bwie.common.core.domain.Result;
import com.bwie.doctor.domain.po.MedOrderDetails;
import com.bwie.doctor.domain.vo.MedOrderDetailsQuery;
import com.bwie.doctor.service.MedOrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/MedOrderDetails")
@RestController
@CrossOrigin
public class MedOrderDetailsControllerLHC {
    @Autowired
    private MedOrderDetailsService medOrderDetailsService;

    /**
     * 医生收入列表
     * @return
     */
    @PostMapping("/queryIncomeList")
    public Result queryIncomeList(@RequestBody MedOrderDetailsQuery medOrderDetailsQuery){
        return medOrderDetailsService.queryIncomeList(medOrderDetailsQuery);
    }

    /**
     * 医生订单列表
     */
    @GetMapping("/queryOrderList/{consultationType}")
    public Result queryOrderList(@PathVariable Integer consultationType){
        return medOrderDetailsService.queryOrderList(consultationType);
    }

    /**
     * 患者订单详情
     */
    @GetMapping("/queryOrderDetails/{orderId}")
    public Result queryOrderDetails(@PathVariable Long orderId){
        return medOrderDetailsService.queryOrderDetails(orderId);
    }
}
